<?php get_header(); ?>
<div id="content">
<h1>
  <?php if ( is_day() ) : ?>
  <?php printf( __( 'Archivi giornalieri: <span>%s</span>' ), get_the_date() ); ?>
  <?php elseif ( is_month() ) : ?>
  <?php printf( __( 'Archivi mensili: <span>%s</span>' ), get_the_date('F Y') ); ?>
  <?php elseif ( is_year() ) :?>
  <?php printf( __( 'Archivi annuali: <span>%s</span>' ), get_the_date('Y') ); ?>
  <?php else : ?>
    Archivi
  <?php endif; ?>
</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  <div class="post">
    <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <div class="post-excerpt">
      <?php the_excerpt();?>
    </div>
  </div>
  <?php endwhile; else: ?>
  <div class="no-results">
    <p>Oops, nessun risultato!</p>
  </div>
  <?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>